package main

import "fmt"

type userInfo struct {
	name string
	age int
	height float32
	hobby []string
	moreinfo map[string]interface{}
}

func main() {
	var people userInfo
	people.name = "TRT"
	people.age = 18
	people.height = 171
	people.moreinfo = map[string]interface{}{
		"work":"bd",
		"duty":"cxy",
	}

	fmt.Printf("name=%s, hobby=%v\n", people.name, people.moreinfo)

	huge := userInfo{
		name:     "huge",
		age:      30,
		height:   185,
		hobby:    nil,
		moreinfo: nil,
	}

	fmt.Printf("name=%s, hobby=%v\n", huge.name, huge.moreinfo)
}
